/* 
 * File:   F06.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F06_H
#define	JRV_F06_H

#include "ecb/base/Problem.h"

#include "ecb/function/Ackley.h"

namespace ecb {
    namespace jrv11 {

        class F06 : public Problem {
        private:
            Problem* ackley;
        public:

            F06(int dimensions)
            : Problem("F06", "Ackley", dimensions,
            -32.768, 32.768, true) {
                ackley = new Ackley;
            }

            ~F06() {
                delete ackley;
            }

            scalar f(const std::vector<scalar>& x) {
                return ackley->f(x);
            }
        };
    }
}

#endif	/* JRV_F06_H */

